import TabSelectItem from "./TabSelectItem.tsx";
import {TimeSelect} from "../../types.ts";
interface TabSelectProps {
    timeSelect: TimeSelect[];
    handleChangeTime: (time:TimeSelect) => void;
}

function TabSelect({timeSelect,handleChangeTime}:TabSelectProps) {

    return (
        <ul className="time-select">
            {timeSelect.map((time) => <TabSelectItem handleChangeTime={handleChangeTime} time={time}
                                                     key={time.value}/>)}
        </ul>
    )
}

export default TabSelect;